
#include "ControlTimer.h"


ControlTimer::ControlTimer()
{


}


bool ControlTimer::InicializarTimer()
{
    Begin = clock()*CLOCKS_PER_SEC;

    return true;
}

bool ControlTimer::CalcularTimer()
{
    End = clock()*CLOCKS_PER_SEC;

    intElapTicks = End-Begin;
    dblElapMiliseconds = intElapTicks/1000;
    
    if(dblElapMiliseconds>=dblTimeBreak){
        return true;
    }else{
        return false;
    }
}

void ControlTimer::CalcularTimerEvaluacion()
{
	End = clock()*CLOCKS_PER_SEC;

    intElapTicks = End-Begin;
    dblElapMiliseconds = intElapTicks/1000;
	dblElapSeconds = dblElapMiliseconds/1000;
}

